<?php echo $header; ?>
<div class="page">
	<div class="personal_info">
    	Welcome,<span id="userName"><?php echo $this->customer->getLastName() ?></span>
					<a href="index.php?route=account/logout">logout</a>
    </div>
	<div class="greenPanel">
		<table width="95%" cellpadding="0" cellspacing="0" align="center" style="margin:auto;">
			<tr>
				<td colspan="3" align="left" height="50px">
					<a href="javascript:void(0)" style="float:left;background:url(catalog/view/theme/default/images/agreeItem.png);padding:8px 70px 17px 62px;">Account</a>
				</td>
			</tr>
			<tr>
				<?php echo $left; ?>
				<td style="height:500px;" valign="top" class="ManageMain">
					<ul>
						<li>Order Information</li>
					</ul>
					<table width="100%" cellspacing="0" cellpadding="0" class="list" style="display: table">
						<tr>
							<th class="textleft">Order Details</th>
							<th width="50%">&nbsp;</th>
						</tr>
						<tr>
						<td class="textleft">Invoice Number: <?php echo $invoice_no; ?></td>
						<td class="textleft">Payment Method: Cash On Delivery</td>
						</tr>
						<tr>
						<td class="textleft">Order Number: # <?php echo $order_id; ?></td>
						<td class="textleft">Shipping Method: <?php echo $shipping_method; ?></td>
						</tr>
						<tr>
						<td class="textleft">Date Added: <?php echo $date_added; ?></td>
						<td class="textleft">&nbsp;</td>
						</tr>
					</table>
					<table width="100%" cellspacing="0" cellpadding="0" class="list" style="display: table">
					      <tr>
						<th class="textleft">Payment Address</th>
						<th width="50%" class="textleft">Shipping Address</th>
					      </tr>
					      <tr>
						<td class="textleft"><?php echo $payment_address; ?></td>
						<td class="textleft"><?php echo $shipping_address; ?></td>
					      </tr>
					<table width="100%" cellspacing="0" cellpadding="0" class="list"  style="display: table">
					      <tr>
						<th class="textleft" width="25%">Product Name</th>
						<th width="10%" class="textleft">Model</th>
						<th width="10%" class="textright">Quantity</th>
						<th width="30%" class="textright">Price</th>
						<th width="13%" class="textright">Total</th>
						<th width="10%">&nbsp;</th>
					      </tr>
					      <?php foreach ($products as $product) { ?>
					      <tr>
						<td class="textleft"><?php echo $product['name']; ?></td>
						<td class="textleft"><?php echo $product['model']; ?></td>
						<td class="textright"><?php echo $product['quantity']; ?></td>
						<td class="textright"><?php echo $product['price']; ?></td>
						<td class="textright"><?php echo $product['total']; ?></td>
						<td><a href="<?php echo $product['return']; ?>">Return </a></td>
					      </tr>
					      <?php } ?>
					      <?php foreach ($totals as $k=>$total) {?>
					      <tr>
						<?php if($k==0){?><td colspan="3" rowspan="6" class="textleft">&nbsp;</td><?php } ?>
						<td class="textright"><?php echo $total['title']; ?>:</td>
						<td class="textright"><?php echo $total['text']; ?></td>
						<td>&nbsp;</td>
					      </tr>
					      <?php } ?>
					</table>
					<?php if ($comment) { ?>
					<table width="100%" cellspacing="0" cellpadding="0" class="list">
						<tr>
						<th class="textleft">Order Comments</th>
					    </tr>
					    <tr>
						<td class="textleft"><?php echo $comment; ?></td>
					    </tr>
					</table>
					<?php }?>
				</td>
			</tr>
		</table>
	</div>
</div>
<?php echo $footer; ?> 